-- GENERATED SPELL FOR [Renataki] --


function spell0_15084(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(8269,pUnit)
pUnit:RegisterEvent('Sorts_15084', 611, 1)
end

function spell1_15084(pUnit, Event) --@Gouge,n/a--
pUnit:FullCastSpellOnTarget(24698,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15084', 4330, 1)
end

function spell2_15084(pUnit, Event) --@Thousand Blades,n/a--
pUnit:FullCastSpellOnTarget(24649,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15084', 250, 1)
end

function spell3_15084(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_15084', 557, 1)
end

function spell4_15084(pUnit, Event) --@Vanish,Self--
pUnit:FullCastSpellOnTarget(24699,pUnit)
pUnit:RegisterEvent('Sorts_15084', 20261, 1)
end

function Sorts_15084(pUnit, Event)
local choix_sorts_15084 = math.random(0, 4)
if choix_sorts_15084 == 0 then
pUnit:RegisterEvent('spell0_15084', 1, 1)
end
if choix_sorts_15084 == 1 then
pUnit:RegisterEvent('spell1_15084', 1, 1)
end
if choix_sorts_15084 == 2 then
pUnit:RegisterEvent('spell2_15084', 1, 1)
end
if choix_sorts_15084 == 3 then
pUnit:RegisterEvent('spell3_15084', 1, 1)
end
if choix_sorts_15084 == 4 then
pUnit:RegisterEvent('spell4_15084', 1, 1)
end
end

function mob15084_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15084', math.random(1500, 3000), 1)
end

function mob15084_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15084_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15084_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15084, 1, 'mob15084_Action')
RegisterUnitEvent(15084, 2, 'mob15084_Leave')
RegisterUnitEvent(15084, 3, 'mob15084_Kill')
RegisterUnitEvent(15084, 4, 'mob15084_Die')
